package main

import (
	"fmt"
	"io/ioutil"
	"net/http"
)

func f1(w http.ResponseWriter, r *http.Request) {
	defer r.Body.Close()
	fmt.Println("客户端发送:", r)
	//fmt.Println("客户端发送:", r.FormValue("user"))
	//fmt.Println("客户端发送:", r.FormValue("pwd"))
	b, err := ioutil.ReadFile("./06jd.html")
	if err != nil {
		w.Write([]byte(fmt.Sprintf("%v\n", err)))
	}
	w.Write(b)
}

func main() {
	http.HandleFunc("/", f1)
	http.ListenAndServe(":8899", nil)
}
